
import request from '../utils/request'

// teacher页面获取所有的表格数据
export function getTeacherApi(params) {
    return request({
        url: '/teacherdata',
        method: 'get',
        params: params
    })
}

// Teacher页面单条删除
export function deleteTeacherApi(params) {
    return request({
        url: '/teacherdelete',
        method: 'post',
        data: params
    })
}

// teacher页面多条删除
export function batchDelApi(params) {
    return request({
        url: '/batchteacher',
        method: 'post',
        data: params
    })
}

// teacher页面添加操作
export function addfunApi(params) {
    return request({
        url: '/addteacher',
        method: 'post',
        data: params
    })
}

// teacher页面修改操作
export function updatefunApi(params) {
    return request({
        url: '/updateteacher',
        method: 'post',
        data: params
    })
}